package com.yourenbang.lingyun.transaction.mapper;

import com.yourenbang.transaction.api.model.dto.htk.TicketCountDTO;
import com.yourenbang.transaction.api.model.dto.htk.TicketDetailDTO;
import com.yourenbang.transaction.api.model.vo.htk.TicketCountVO;
import com.yourenbang.transaction.api.model.vo.htk.TicketDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransactionAllyTicketAccountMapper {
    /**
     * 增加兑换券
     * @param userBaseId
     * @param amount
     * @return
     */
    int addTicket(@Param("userBaseId") String userBaseId,@Param("amount")int amount);

    /**
     * 查询兑换券数量
     * @param dto
     * @return
     */
    TicketCountVO queryTicketCount(TicketCountDTO dto);

    /**
     * 查询兑换券明细
     * @param dto
     * @return
     */
    List<TicketDetailVO> queryTicketDetail(TicketDetailDTO dto);
}